// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'styles/reset.css'
// 样式重置
import 'styles/iconfont.css'
// 引入iconfont 字体图标
import 'styles/border.css'
// 解决1像素边框问题
import FastClick from 'fastclick'
// 解决300ms延迟问题
import VueAwesomeSwiper from 'vue-awesome-swiper'
// 全局引入轮播插件
import 'swiper/dist/css/swiper.css'
// 引入vuex文件
import store from './store'
// 轮播样式文件
Vue.use(VueAwesomeSwiper)
// 使用轮播插件

FastClick.attach(document.body)

// 地址转换配置api
Vue.prototype.HOST = '/api'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
